#include <iostream>
#include "object.h"


int main(int argv, char**argc)
{
    printf("************  test hello zc!!!   **************\n");
    /* add test code! */
	Email *email,*copyEmail;
	email = new Email();
	copyEmail  = (Email*) email->clone();
 
	//浅克隆比较 
	std::cout << "email == copyEmail?" << std::endl;
	std::cout << (email==copyEmail) << std::endl;
	std::cout << "email.getAttachment == copyEmail.getAttachment?" << std::endl;
	std::cout << (email->getAttachment()==copyEmail->getAttachment()) << std::endl;
	
	//查看邮件 
	email->display();
	copyEmail->display();
	
	//下载附件测试 
	email->getAttachment()->download();
	copyEmail->getAttachment()->download();


    return 0;
}